/*
 * @Author: ZhaoZhiqi
 * @Date: 2022-09-30 15:19:05
 * @LastEditors: ZhaoZhiqi
 * @LastEditTime: 2022-12-13 14:17:57
 * @Description: 好差评API
 * @FilePath: \tuanfeng-mini\src\api\satisfaction.js
 */
import request from "./request";

/**
 * @description: 提交群众评价表单
 * @param {string} content 代办内容
 * @param {string} name 姓名
 * @param {string} phone 手机号
 * @param {string} phone 手机号
 * @param {boolean} isSatisfy 是否满意
 * @param {number} totalEstimate 总体评价
 * @param {number} workEfficiency 办事效率
 * @param {number} serviceAttitude 服务态度
 * @param {number} professionalSkill 业务水平
 * @return {*}
 */
export function submitCSIAPI(data) {
    return request(`app/addEstimate`, 'POST', data)
}

/**
 * @description: 查询受评部门
 * @return {*}
 */
export function getDeptsAPI(data) {
    return request(`dept/getEvaluatedDept`, 'GET', data)
}

// 获取好差评列表
export function getAppraiseListApi(data) {
  return request(`app/getAppraise/${data}`, 'GET')
}
